<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<br />

	<div align="center">
		<font size="5" face="Georgia"><b>All Jobs</b></font> <br /> <br />
	</div>

	<div class="span9 offset3">
		<s:form class="form-inline" action="jobpostingstrainer">
			<table>
				<tr>

					<td><input type="text" class="input-large" placeholder="Skill"
						name="skills"></td>
					<td><input type="text" class="input-large"
						placeholder="Company Name" name="company"></td>
					<td><input type="text" class="input-large"
						placeholder="Location" name="location"></td>
					<td valign="top"><button type="submit" class="btn">Search</button></td>
				</tr>
			</table>

			<input type="submit" class="btn" name="refresh"
				value="Update From Different Data Source" />

		</s:form>

	</div>

	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">

				<s:if test="jobpostings.size()!=0">

					<table class="table-bank table-bank-bordered table-bank-hover "
						id="results">
						<tr>
							<th style="text-align: center"><font size="4" face="Georgia">Job
									Code</font></th>
							<th style="text-align: center"><font size="4" face="Georgia">Job
									Description</font></th>
							<th style="text-align: center"><font size="4" face="Georgia">Location</font></th>
							<th style="text-align: center"><font size="4" face="Georgia">Company
									Name</font></th>
							<th style="text-align: center"><font size="4" face="Georgia">Skills</font></th>
							<th style="text-align: center"><font size="4" face="Georgia">Source</font></th>
							
						</tr>

						<s:iterator value="jobpostings">

							<s:if test="sourceFlag == 1">
								<tr bgcolor="#D2FFC4">

									<td style="text-align: center"><s:property value="jobCode" /></td>

									<td style="text-align: center"><s:property value="jobDesc" /></td>

									<td style="text-align: center"><s:property
											value="location" /></td>

									<td style="text-align: center"><s:property
											value="companyName" /></td>

									<td style="text-align: center"><s:property value="skills" /></td>

									<td style="text-align: center"><s:property value="source" /></td>

								</tr>

							</s:if>

							<s:if test="sourceFlag == 0">
								<tr bgcolor="#FFC8C8">

									<td style="text-align: center"><s:property value="jobCode" /></td>

									<td style="text-align: center"><s:property value="jobDesc" /></td>

									<td style="text-align: center"><s:property
											value="location" /></td>

									<td style="text-align: center"><s:property
											value="companyName" /></td>

									<td style="text-align: center"><s:property value="skills" /></td>

									<td style="text-align: center"><s:property value="source" /></td>

								</tr>

							</s:if>

						</s:iterator>
					</table>

					<div id="pageNavPosition" align="center"></div>

				</s:if>
			</div>

		</div>
	</div>

	<script type="text/javascript">
		var pager = new Pager('results', 10);
		pager.init();
		pager.showPageNav('pager', 'pageNavPosition');
		pager.showPage(1);
	</script>
	<br />
	<br />
	<br />

</body>
</html>